< previous page page_197 next page >

Page 197
4. Using the results of exercise 3, create a client class that invokes the testMethod method. Check the type of the return in the client method.
5. Review the following inline error handling code from the testReturns method of the TestClass class:
9f8044bafea36a1f728739c0bb58ef4c.gif
errtestReturns:
    Dim sMethodName As String
    sMethodName = testReturns
    theErrorHandler.processVBTypeError Err, Me, sMethodName
    sMethodName = 
9f8044bafea36a1f728739c0bb58ef4c.gif
Create a class called ErrorHandler that implements the indicated behavior and stores the error information. (Hint: The processVBTypeError method should process the Err object by its property values, capture the type name of the class indicated by the Me keyword, and capture the name of the method, displaying this information in a form and saving it to a file.)

 
< previous page page_197 next page >

If you like this book, buy it!